<ul id="languages">
	<?php foreach($this->langs as $key=>$label): ?>
	<li class="<?php echo $key; ?><?php if($key==$_SESSION["language"]): ?> selected<?php endif; ?>"><a href="<?php echo preg_replace('/\/+$/', "", $_SERVER["REQUEST_URI"]); ?>/lang;<?php echo $key; ?>"><?php echo $label; ?></a></li>
	<?php endforeach; ?>
</ul>